"""
    从键盘接受用户的输入字符串，统计每个字符出现的次数
    统计出现次数最多的字符
"""
str1 = input("请输入一串字符串:")
str2 = ""
num = {}
for i in str1:
    if i not in str2:
        str2 += i
        print(i, "出现的次数为", str1.count(i))
        num[i] = str1.count(i)

temp = max(num.values())

for k, v in num.items():
    if v == temp:
        print("出现最多的是", k, "出现了", v, "次")